#ifndef DUOPL_EXTENSION_WIDGET_H
#define DUOPL_EXTENSION_WIDGET_H

#include <QWidget>
#include <QtGui>

#include "duopl_progress_base.h"
#include "duopl_button.h"

class duopl_extension_widget : public QFrame
{
    Q_OBJECT
public:
    explicit duopl_extension_widget(QFrame *parent = 0);

#if 0
    QSize sizeHint() const
    {
        return QSize(500,500);
    }
#endif

signals:
    
public slots:
    void addTextInfo(QString info);
    void more_button_slot();
    void UpdateData();

private:
    duopl_button *ok_button;
    duopl_button *more_button;
    QLabel* short_info;
    duopl_progress_base *progress;
    QListWidget *text_view;

    QVBoxLayout *duopl_pMainLayout;
    QHBoxLayout *duopl_pButtonLayout;

private:
    void paintEvent(QPaintEvent *event);
    void initVariables();
    void creatWidget();
    
};

#endif // DUOPL_EXTENSION_WIDGET_H
